package jdmx.framework.common;

import org.apache.log4j.Logger;

import jdmx.library.helpers.TypeHelper;

public abstract class Handler {
	protected Logger logger;
	protected String handlingCode;

	public void init(String handlingCode) {
		this.handlingCode = handlingCode;
		if (logger == null) { 
			String className = TypeHelper.getObjectClassName(this);
			logger = Logger.getLogger(className);
		}
	}
}
